raar.gui
Class RAGuiS

java.lang.Object
  extended byraar.gui.tools.RAGDockReceiver
      extended byraar.gui.RAGuiS
All Implemented Interfaces:
RAGuiTab

public class RAGuiS
extends RAGDockReceiver
implements RAGuiTab

Simulator GUI.


Field Summary
 RAGDebugFrame debugger
           
 RAGEdit editor
           
static int eh
          Editor default size.
static int ew
          Editor default size.
 RAGExternalFrame external
           
 javax.swing.JMenuItem externalAgent
           
 javax.swing.JMenuItem placeAgent
           
 javax.swing.JMenuItem removeAgent
           
 javax.swing.JMenuItem removeAgentW
           
 javax.swing.JMenuItem saveAgent
           
 javax.swing.JMenu selAgent
           
 javax.swing.JMenuItem sim_play
           
 javax.swing.JMenuItem sim_stop
           
 RAGSimFrame simulator
           
 RAGTasks tasks
           
 javax.swing.JMenuItem world_save_world
           
 
Constructor Summary
RAGuiS()
          Construct.
 
Method Summary
 void about()
          Show some help.
 void addAgentToWorld(RAAgent agent, java.awt.geom.Point2D.Double position, double rotation)
          Add agent to world.
 boolean agentIsInWorld(RAAgent a)
          Is the agent specified in the world or not?
 void debug(java.lang.Object toDebug)
          Debug/show the object provided.
 void editAgent(RAAgent aa)
          Edit agent.
 void externalAgent(RAAgent a)
          Add agent to the External Agents controls.
 java.awt.Component getDesktop()
          For RAGuiTab.
 javax.swing.JPanel getDockArea()
          Get the dock area.
 javax.swing.JPanel getDockPanel()
          Get the dock panel.
 java.awt.Component getMenu()
          For RAGuiTab.
 java.util.Vector getWorldAgents()
          Get the agents that are in the world.
 void go()
           
 void help()
          Show some help.
 void loadAgent()
          Load agent.
 void loadMap()
          Load a map.
 void loadWorld()
          Load a world.
 void newAgent()
          New agent.
 void newAgent(RAAgent a)
          New agent.
 void notifyAgentListChanged()
          Notify that agent list has changed.
 void notifyExternalAgentFrameClosed()
          Notify that the external agent frame has been closed.
 void notifySimFrameClosed()
          Notify that the simulator has been closed.
 void place(RAAgent a)
          Add agent to world (command).
 void removeAgentCompletely(RAAgent a)
          Remove agent.
 void removeAgentFromWorld(RAAgent a)
          Remove agent.
 void saveAgent(RAAgent a)
          Save agent.
 void saveWorld()
          Save a world.
 void showDebug()
          Show a debug and monitor window.
 
Methods inherited from class raar.gui.tools.RAGDockReceiver
dock, docked, undock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tasks

public RAGTasks tasks

editor

public RAGEdit editor

simulator

public RAGSimFrame simulator

external

public RAGExternalFrame external

debugger

public RAGDebugFrame debugger

ew

public static final int ew
Editor default size.

See Also:
Constant Field Values

eh

public static final int eh
Editor default size.

See Also:
Constant Field Values

selAgent

public javax.swing.JMenu selAgent

saveAgent

public javax.swing.JMenuItem saveAgent

removeAgentW

public javax.swing.JMenuItem removeAgentW

removeAgent

public javax.swing.JMenuItem removeAgent

placeAgent

public javax.swing.JMenuItem placeAgent

externalAgent

public javax.swing.JMenuItem externalAgent

world_save_world

public javax.swing.JMenuItem world_save_world

sim_play

public javax.swing.JMenuItem sim_play

sim_stop

public javax.swing.JMenuItem sim_stop
Constructor Detail

RAGuiS

public RAGuiS()
Construct.

Method Detail

getDockPanel

public javax.swing.JPanel getDockPanel()
Get the dock panel.

Specified by:
getDockPanel in class RAGDockReceiver

getDockArea

public javax.swing.JPanel getDockArea()
Get the dock area.

Specified by:
getDockArea in class RAGDockReceiver

getMenu

public java.awt.Component getMenu()
For RAGuiTab.

Specified by:
getMenu in interface RAGuiTab

getDesktop

public java.awt.Component getDesktop()
For RAGuiTab.

Specified by:
getDesktop in interface RAGuiTab

go

public void go()

loadMap

public void loadMap()
Load a map.


loadWorld

public void loadWorld()
Load a world.


saveWorld

public void saveWorld()
Save a world.


newAgent

public void newAgent()
New agent.


newAgent

public void newAgent(RAAgent a)
New agent.


loadAgent

public void loadAgent()
Load agent.


saveAgent

public void saveAgent(RAAgent a)
Save agent.


editAgent

public void editAgent(RAAgent aa)
Edit agent.


agentIsInWorld

public boolean agentIsInWorld(RAAgent a)
Is the agent specified in the world or not?


getWorldAgents

public java.util.Vector getWorldAgents()
Get the agents that are in the world.


removeAgentFromWorld

public void removeAgentFromWorld(RAAgent a)
Remove agent.


removeAgentCompletely

public void removeAgentCompletely(RAAgent a)
Remove agent.


place

public void place(RAAgent a)
           throws RAException
Add agent to world (command).

Throws:
RAException

addAgentToWorld

public void addAgentToWorld(RAAgent agent,
                            java.awt.geom.Point2D.Double position,
                            double rotation)
Add agent to world.


externalAgent

public void externalAgent(RAAgent a)
                   throws RAException
Add agent to the External Agents controls.

Throws:
RAException

showDebug

public void showDebug()
Show a debug and monitor window.


debug

public void debug(java.lang.Object toDebug)
Debug/show the object provided.


help

public void help()
Show some help.


about

public void about()
Show some help.


notifyAgentListChanged

public void notifyAgentListChanged()
Notify that agent list has changed.


notifySimFrameClosed

public void notifySimFrameClosed()
Notify that the simulator has been closed.


notifyExternalAgentFrameClosed

public void notifyExternalAgentFrameClosed()
Notify that the external agent frame has been closed.